<template>
  <footer class="footer-container">
    <div class="info-container">
      <div class="infoWrapper">
        <div class="img">
          <img :src="logo" alt="" />
        </div>
        <div class="link-container">
          <div class="firendlink">
            <div class="linktitle">
              <i class="iconfont iconsousuo"></i>
              <span>友情链接</span>
            </div>
            <ul class="link">
              <li v-for="(item, index) of firendlink" :key="index">
                <a :href="item.linkhref" target="_blank">{{ item.linkname }}</a>
              </li>
            </ul>
          </div>
          <div class="firendlink">
            <div class="linktitle">
              <i class="iconfont iconsousuo"></i>
              <span>我的链接</span>
            </div>
            <ul class="link">
              <li v-for="(item, index) of minelink" :key="index">
                <a :href="item.linkhref" target="_blank">
                  <img :src="item.photoimg" alt="" />
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="copyright-container">
      <div class="copyrightWrapper">
        <span class="copyright"
          >Copyright © 2019-2023 周子敖. All Rights Reserved.备案号</span
        >
        <span class="bah"> 陇ICP备2020003355号</span>
      </div>
    </div>
  </footer>
</template>

<script>
import Api from "@/service/index";
import { IMG_URL, MINE_LINK } from "@/config/config";
const apiService = new Api();
export default {
  name: "hfooter",
  data() {
    return {
      firendlink: [],
      minelink: [],
      logo: IMG_URL + "logowhite.png"
    };
  },
  async mounted() {
    this.firendlink = await apiService.findFirendLink();
    this.minelink = MINE_LINK;
  }
};
</script>

<style lang="scss" scoped>
.footer-container {
  width: 100%;
  height: 347px;
  margin-top: 20px;
  content: "";
  clear: both;
  // position: absolute;
  // bottom: 0px;
  .info-container {
    height: 273px;
    background-color: #42413e;
    .infoWrapper {
      width: 1156px;
      margin: 0 auto;
      .img {
        border-bottom: 2px solid #7e7e7e6e;
        padding-bottom: 51px;
        padding-top: 36px;
      }
      .link-container {
        width: 100%;
        padding-left: 93px;
        .firendlink {
          width: 578px;
          float: left;

          .linktitle {
            font-size: 20px;
            font-family: "xx";
            color: #fff;
            box-sizing: border-box;
            padding: 9px;
            span {
              margin-left: 9px;
            }
          }
          .link {
            list-style: none;
            margin-top: 25px;
            margin-left: -25px;
            li {
              float: left;
              padding-left: 25px;
            }
            a {
              text-decoration: none;
              color: #fff;
              font-size: 16px;
            }
          }
        }
      }
    }
  }
  .copyright-container {
    width: 100%;
    height: 74px;
    background-color: #000;
    .copyrightWrapper {
      margin: 0 auto;
      text-align: center;
      padding-top: 25px;
      .copyright {
        font-size: 16px;
        color: #606060;
      }
      .bah {
        color: #fff;
      }
    }
  }
}
</style>